<?php 
    $this->load->view('includes/header'); 
    $this->load->view('includes/nav');
?>
<section id="LeapMainWrapper">
    <div id="login_form">
        <h1>Sign Up</h1>
        <fieldset>
            <legend>Personal Information</legend>
            <?php
            echo form_open('login/create_member');
            ?>

            <input type="text" placeholder="Firstname" name="first_name" value="<?php echo set_value('first_name'); ?>" size="50" />
            <input type="text" placeholder="Lastname" name="last_name" value="<?php echo set_value('last_name'); ?>" size="50" />
            <input type="text" placeholder="Email" name="email_address" value="<?php echo set_value('email_address'); ?>" size="50" />

        </fieldset>

        <fieldset>
            <legend>Login Info</legend>

            <input type="text" placeholder="Username" name="username" value="<?php echo set_value('username'); ?>" size="50" />
            <input type="password" placeholder="Password" name="password"  size="50" />
            <input type="password" placeholder="Confirm Password" name="password2"  size="50" />
            <?php
            $submit = array(
                'class' => 'button',
                'type' => 'submit',
                'value' => 'Submit'
            );
            echo form_submit($submit);
            ?>

            <?php echo validation_errors('<p class="error">'); ?>

        </fieldset>
    </div>
</section>

<?php $this->load->view('includes/footer'); ?>